home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 February / PCWFEB09.iso / Software / Linux / SLAX 6.0.8 / slax-6.0.8.iso / slax / base / 006-devel.lzm / usr / include / utempter.h < prev    next >
Encoding:
C/C++ Source or Header  |  2005-08-18  |  1.4 KB  |  49 lines

  1.  
  2. /*
  3.   $Id: utempter.h,v 1.11 2005/08/18 17:26:05 ldv Exp $
  4.  
  5.   Copyright (C) 2001,2002  Dmitry V. Levin <ldv@altlinux.org>
  6.  
  7.   Interface for utempter library.
  8.  
  9.   This file is free software; you can redistribute it and/or
  10.   modify it under the terms of the GNU Lesser General Public
  11.   License as published by the Free Software Foundation; either
  12.   version 2.1 of the License, or (at your option) any later version.
  13.  
  14.   This file is distributed in the hope that it will be useful,
  15.   but WITHOUT ANY WARRANTY; without even the implied warranty of
  16.   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  17.   Lesser General Public License for more details.
  18.  
  19.   You should have received a copy of the GNU Lesser General Public
  20.   License along with this library; if not, write to the Free Software
  21.   Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
  22. */
  23.  
  24. #ifndef UTEMPTER_H
  25. #define UTEMPTER_H
  26.  
  27. #ifdef    __cplusplus
  28. extern  "C" {
  29. #endif
  30.  
  31. /* New interface. */
  32.  
  33. extern int utempter_add_record (int master_fd, const char *hostname);
  34. extern int utempter_remove_record (int master_fd);
  35. extern int utempter_remove_added_record (void);
  36. extern void utempter_set_helper (const char *pathname);
  37.  
  38. /* Old interface. */
  39.  
  40. extern void addToUtmp (const char *pty, const char *hostname, int master_fd);
  41. extern void removeFromUtmp (void);
  42. extern void removeLineFromUtmp (const char *pty, int master_fd);
  43.  
  44. #ifdef    __cplusplus
  45. }
  46. #endif
  47.  
  48. #endif /* UTEMPTER_H */
  49.